package validate;

import util.AppUtil;
import constant.Msg;

public class CollectionValidate {
	public static String get(String offset,String length) {
		if (!(AppUtil.isInteger(offset)||AppUtil.isInteger(length))) {
			return Msg.ERROR_PARA_TYPE;
		}
		return null;
	}
	
	public static String post(int userId,String recipeId){
//		if (userId==null)return Msg.ERROR_UNLOGIN;
		if (recipeId==null) return Msg.ERROR_PARA_NUM;
		if (AppUtil.isInteger(recipeId)) {}else {return Msg.ERROR_PARA_TYPE;}
		return null;
	}
	
	public static String delete(int userId,String recipeId) {
//		if (userId==null)return Msg.ERROR_UNLOGIN;
		if (recipeId==null) return Msg.ERROR_PARA_NUM;
		if (AppUtil.isInteger(recipeId)) {}else {return Msg.ERROR_PARA_TYPE;}
		return null;
	}
}
